<?php


namespace frontend\models\cyf;


use yii\db\ActiveRecord;

class MemberRule extends ActiveRecord
{
    public static function tableName()
    {
        return '2008a_member_rule';
    }

    /**
     * 查看会员权益
     * @param $id
     * @return array|ActiveRecord[]
     * @cyf
     */
    public static function getRuleByCardId($id)
    {
        return self::find()->where(['grade'=>$id])->asArray()->all();
    }
}